package com.cmc.cloud.cmclink.doc.vo.agentoperationportvo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.*;

/**
 * 单证代理操作口岸配置 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 *
 * @author codegen
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AgentOperationPortBaseVO {

    @Schema(description = "客商主数据代码", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{AgentOperationPortBaseVO.agentCode.NotBlank}")
    @Length(max = 50, message = "{AgentOperationPortBaseVO.agentCode.Length}")
    private String agentCode;

    @Schema(description = "操作口岸", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "{AgentOperationPortBaseVO.operationPortCode.NotBlank}")
    @Length(max = 5, message = "{AgentOperationPortBaseVO.operationPortCode.Length}")
    private String operationPortCode;

}
